
***********************************************************************************************************************
**** Table 1. Pre-intervention Summary Statistics (ITT Sample)  *******************************************************
***********************************************************************************************************************

use "$data/Non_payment_dataset_ready.dta" , clear

log using "$filepath/output_logs/table 1", replace

estpost tabstat paymentw paymentcondw invoicesw prepaidcounttotal preclosingbalancew preage_of_accountw if t<=12, by(itt) statistics(mean p25 med p75 sd count) columns(statistics) nototal

* Checking for balance *
foreach x in paymentw paymentcondw invoicesw prepaidcounttotal preclosingbalancew preage_of_accountw {
reg `x' i.itt if itt!=. & t<=12, vce(cluster customer)
}

log close
